<?php
class ModuleSnsVo extends SzAbstractMySqlVo
{

    private $platformId;
    private $userId;
    private $created;

    /**
     * Initialize ModuleSnsVo.
     *
     * @param $platformId
     * @param $userId
     * @param $created
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return ModuleSnsVo
     */
    public function __construct($platformId, $userId, $created, $isInsert = false) {
        $this->platformId = $platformId;
        $this->userId = $userId;
        $this->created = $created;

        $this->isInsert = $isInsert;
        $this->voClassName = 'ModuleSnsVo';
        $this->ormName = 'ModuleSns';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'platformId' => $this->getPlatformId(),
            'userId' => $this->getUserId(),
            'created' => $this->getCreated(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'platformId' => $this->getPlatformId(),
            'userId' => $this->getUserId(),
            'created' => $this->getCreated(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getPlatformId(),
            $this->getUserId(),
            $this->getCreated(),
        );
    }

    public function getPlatformId()
    {
        return $this->platformId;
    }

    public function setPlatformId($val)
    {
        $this->saveColumnStatus(0, $this->platformId);
        $this->platformId = $val;
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(1, $this->userId);
        $this->userId = $val;
    }

    public function getCreated()
    {
        return $this->created;
    }

    public function setCreated($val)
    {
        $this->saveColumnStatus(2, $this->created);
        $this->created = $val;
    }

}